<?php
echo('<?xml version="1.0" encoding="UTF-8"?>');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--[if lte IE 7]>
    <script type="text/javascript">alert('<?php echo(addslashes(STR_HLP_IE_SUCKS));?>');</script>
    <![endif]-->
    <script type="text/javascript" src="app/lib/jquery/ufo.js"></script>
    <script type="text/javascript" src="app/lib/jquery/jquery-latest.js"></script>
    <script type="text/javascript" src="app/lib/jquery/interface.js"></script>
    <script type="text/javascript" src="app/lib/jquery/jquery.tabs.pack.js"></script>
    <script type="text/javascript" src="app/lib/jquery/jqModal.js"></script>
    <script type="text/javascript" src="?c=langjs"></script>
    <script type="text/javascript" src="app/mvc/c/func.js"></script>
    <script type="text/javascript">
      function checkForm()
      {
        if($('#login').val() == '')
        {
          alert(str.hlp_give_login);
          $('#login').focus();
          return false;
        }
        if($('#pass').val() == '')
        {
          alert(str.hlp_give_pass);
          $('#pass').focus();
          return false;
        }
      }
      
    $(document).ready(function(){
       /**
        *Add flash mp3 player
        */
      var FO = {movie:"app/lib/mcz/playa.swf",id:"fookinPlay",build:"0",swliveconnect:"true",allowscriptaccess:"always", width:"1", height:"1",majorversion:"8"};
      UFO.create(FO, "playaSpace");
      })
    </script>
    <link id="screenStyles" href="app/skin/default/screen.css" type="text/css" rel="stylesheet" media="screen" />
    <title><?php echo(ucwords(APP_NAME.' '.STR_UI_AUTH));?></title>
  </head>
  <body style="direction: ltr;" onload="$('#login').select();">
    <div id="help"></div>
    <div id="loginBox">
      <form method="post" action="<?php echo($_SERVER['PHP_SELF']);?>" name="auth" onsubmit="return checkForm();">
        <fieldset>
          <legend><?php echo(ucwords(STR_UI_AUTH));?></legend>
          <p class="errormsg"><?php echo($_SESSION['MczSession']->lastError());?></p>
          <input type="text" id="login" name="login" onfocus="$('#help').empty().append(str.ui_login);" /><br/>
          <input id="pass" name="pass" type="password" onfocus="$('#help').empty().append(str.ui_pass);" /><br/>
          <input type="hidden" id="token" name="token" value="<?php echo($_SESSION['MczSession']->getToken());?>"/>
          <input type="submit" value="<?php echo(STR_UI_OK);?>" />
          </fieldset>
      </form>
    </div>
  <?php
    //Tools::debugInfos();
  ?>
  <div id="playaSpace"><?php echo(STR_ERR_ENABLE_JS);?></div>
  </body>
</html>
